
<!--##############
#####################
####################-->



<?php



$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];





if($_SESSION['currency']=="BRL"):
echo "

<div id='country-select'>
  <form method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options' name='country-options'>
      <option selected='selected' title='".$url."&currency=BRL' value='PORTUGAL'>R - BRL</option>
      <option title='".$url."&currency=EUR' value='UK'>€ - EUR</option>
      <option title='".$url."&currency=ESP' value='SPAIN'>Pts - ESP</option>
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Currency</div>

";

elseif($_SESSION['currency']=="ESP"):
echo "

<div id='country-select'>
  <form method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options' name='country-options'>
	<option selected='selected' title='".$url."&currency=ESP' value='SPAIN'>Pts - ESP</option>
	<option title='".$url."&currency=EUR' value='UK'>€ - EUR</option>
      <option title='".$url."&currency=BRL' value='PORTUGAL'>R - BRL</option>     
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Currency</div>";


elseif($_SESSION['currency']=="EUR"):
echo "
<div id='country-select'>
  <form method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options' name='country-options'>
	<option selected='selected' title='".$url."&currency=EUR' value='UK'>€ - EUR</option>	
      <option title='".$url."&currency=BRL' value='PORTUGAL'>R - BRL</option>
	  <option title='".$url."&currency=ESP' value='SPAIN'>Pts - ESP</option>   
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Currency</div>
";

else:
echo  "

<div id='country-select'>
  <form method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options' name='country-options'>
	<option selected='selected' title='".$url."' value='NONE'>".$_SESSION['currency']."</option>
	<option title='".$url."&currency=EUR' value='UK'>€ - EUR</option>	
      <option title='".$url."&currency=BRL' value='PORTUGAL'>R - BRL</option>
	  <option title='".$url."&currency=ESP' value='SPAIN'>Pts - ESP</option>   
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Currency</div>
";

endif;


?>




<!--##############
#####################
####################-->
<?php

$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];




if($_SESSION['language']=="portugues"):
echo "<div id='country-select2'>
  <form name='lanf2' method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options2' name='country-options2'>
      <option selected='selected' title='".$url."&language=pt' value='PORTUGAL'>Portugues</option>
      <option title='".$url."&language=en' value='UK'>English</option>
      <option title='".$url."&language=es' value='SPAIN'>Spanish</option>
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Language</div>
";

elseif($_SESSION['language']=="spanish"):
echo "
<div id='country-select2'>
  <form name='lanf2' method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options2' name='country-options2'>
      <option selected='selected' title='".$url."&language=es' value='SPAIN'>Spanish</option>
      <option title='".$url."&language=en' value='UK'>English</option>
      <option title='".$url."&language=pt' value='PORTUGAL'>Portugues</option>
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Language</div>
";


elseif($_SESSION['language']=="english"):
echo "
<div id='country-select2'>
  <form name='lanf2' method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options2' name='country-options2'>
      <option selected='selected' title='".$url."&language=en' value='UK'>English</option>
      <option title='".$url."&language=pt' value='PORTUGAL'>Portugues</option>
      <option title='".$url."&language=es' value='SPAIN'>Ppanish</option>
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Language</div>
";

else:
echo  "
<div id='country-select2'>
  <form name='lanf2' method='get' action='".$_SERVER['PHP_SELF']."'>
    <select id='country-options2' name='country-options2'>
      <option selected='selected' title='".$url."' value='NONE'>".$_SESSION['language']."</option>
	  <option selected='selected' title='".$url."&language=en' value='UK'>English</option>
	  <option title='".$url."&language=es' value='SPAIN'>Ppanish</option>
      <option title='".$url."&language=pt' value='PORTUGAL'>Portugues</option>
      
    </select>
    <input value='Select' type='submit' />
  </form>
</div>
<div style='float:right; padding-right:5px; padding-left:5px;'>Language</div>

";

endif;







?>

